package com.zzptc.sky.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class ZhuceActivity extends AppCompatActivity {
Button wanche=null;
    TextView fanghui3=null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhuce);
        wanche= (Button) findViewById(R.id.wanche);
        fanghui3= (TextView) findViewById(R.id.fanghui3);
        wanche.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(ZhuceActivity.this,MainActivity.class);
                startActivity(intent);
                Toast.makeText(ZhuceActivity.this, "注册成功", Toast.LENGTH_SHORT).show();
            }
        });
        fanghui3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(ZhuceActivity.this,ShezhiActivity.class);
                startActivity(intent);
            }
        });
    }
}
